package com.net.xpay.common.enums.config;

import com.net.common.enums.base.StringEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author  on 27/04/2018.
 * 只记录了后端需要用到的key,数据库可以有很多的配置项
 */
@Getter
@AllArgsConstructor
public enum CommonSysConfigKey implements StringEnum<CommonSysConfigKey> {


    MERCHANT_DOMAIN("merchant_domain", "商户端域名"),

    OPEN_DOMAIN("open_domain", "开放平台域名"),

    OPENAPI_DOMAIN("openapi_domain", "开放接口网关域名"),

    SHORT_DOMAIN("short_domain", "短链接域名"),

    PARTNER_DOMAIN("partner_domain", "合伙人端域名"),

    OPEN_REGISTER("open_register", "是否开放注册"),

    PARTNER_WITHDRAW_SAFE_PAY_ACCOUNT("partner_withdraw_safe_pay_account", "推广提现打款安全付支付宝账号"),
    PARTNER_WITHDRAW_ALIPAY_ACCOUNT("partner_withdraw_alipay_account", "推广提现打款支付宝账号"),
    PARTNER_WITHDRAW_MOBILE("partner_withdraw_mobile", "推广提现打款手机账户"),

    OPEN_ALIPAY_ACCOUNT_DAY_LIMIT("open_alipay_account_day_limit", "是否开启日限额"),
    ALIPAY_ACCOUNT_DAY_LIMIT_AMOUNT("alipay_account_day_limit_amount", "日限额"),

    DEFAULT_PARTNER_SETTLE_RULE("default_partner_settle_rule", "默认的渠道分佣规则"),
    OPEN_SAFE_PAY_BANK("open_safe_pay_bank", "是否开放安全付到卡"),
    OPEN_SAFE_PAY_NEW_SIGN_METHOD("open_safe_pay_new_sign_method", "是否开放安全发签约授权新方式"),
    //稳定服务暂停服务用
    PAUSE_STABLE_SERVICE("pause_stable_service", "稳定服务暂停服务用"),
    QUERY_SAFE_PAY_ORDER_DELAY_TIME("query_safe_pay_order_delay_time", "安全付支付结果超时查询时间（单位秒）"),

    //单笔到卡的手续费成本
    SINGE_TRANS_BANK_COST_RATIO("singe_trans_bank_cost_ratio", "单笔到卡手续费成本费率");


    private String value;

    private String desc;
}
